package day14;

import java.util.Scanner;
import java.util.concurrent.ArrayBlockingQueue;

public class homework03 {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("请输入一个正整数：");
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        ArrayBlockingQueue<Integer> qu=new ArrayBlockingQueue<>(n);
        for(int i=1;i<=n;i++){
            qu.put(i);
        }
        homework0003 m2=new homework0003(qu);
        homework003 m1=new homework003(qu);
        m1.start();
        m2.start();
    }
}
